import java.util.Scanner;

/**
 * @author zhoujunjie
 * @desc 打印字母等腰三角形
 * @date 2025/4/9
 */
public class Test03 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入n");
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            for (int k = n - i - 1; k > 0; k--) {
                System.out.print(' ');
            }
            for (int j = 2 * i + 1; j > 0; j--) {
                char m = (char) ('A' + i);
                System.out.print(m);
            }
            System.out.println();
        }
    }
}